/*
  学习目标：配置redux调试工具
  步骤：
     1. npm i redux-devtools-extension
     2. 配置中间件和插件，口诀： 工具 > 应用 > 中间件
     3. chrome装插件
     4. 重启浏览器
*/

import { applyMiddleware, legacy_createStore as createStore } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import rootReducer from './reducer';
import thunk from 'redux-thunk';

const store = createStore(rootReducer, composeWithDevTools(applyMiddleware(thunk)));

export default store;
